package com.lq.ecoldchain.util

import android.content.Context
import android.view.ViewGroup


/*
*2018/10/31 0031  17:29
*function by lq
*/
object StateUtil {
    // 获得状态栏高度
    fun getStatusBarHeight(context: Context): Int {
        val resourceId = context.resources.getIdentifier("status_bar_height", "dimen", "android")
        return context.resources.getDimensionPixelSize(resourceId)
    }

}